package com.atguigu.mpper;

import com.atguigu.pojo.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * projectName: com.atguigu.mpper
 *
 * @author: 赵伟风
 * description:
 */
public interface UserMapper extends BaseMapper<User> {


//    User getUserGyId();
    IPage<User> queryAll(IPage<User> page); //自己定义一个方法


    //根据name进行模糊查询 添加分页
    IPage<User> queryByLikeName(IPage<User> page, @Param("name") String name);
}
